package com.ruoyi.web.controller.xcx;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.AData;
import com.ruoyi.system.service.IADataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 素材库类别Controller
 *
 * @author ruoyi
 * @date 2024-05-16
 */
@RestController
@RequestMapping("/xcx/aData")
public class XcxAData extends BaseController {

    @Autowired
    private IADataService aDataService;


    /**
     * 查询素材库类别列表
     */
    @GetMapping("/list")
    public AjaxResult list(AData aData) {
        aData.setIsShow("0");
        List<AData> list = aDataService.selectADataList(aData);
        return success(list);
    }
}
